package app.services;

import app.enums.GenreCode;
import app.enums.PublicationTypeCode;
import app.models.Book;
import java.util.List;
import org.javalite.activejdbc.Errors;

/**
 *
 * @author Kseniya Artsiukhova <kartsiukhova@productiveedge.com>
 */
public interface BookListService {

    public List<Book> selectAllBooks();

    public void deleteBook(Long bookId);
    
    public void deleteBookList(List<Long> booksId);
    
    public Errors addNewBook(String genreCode, String name, String author, String numberOfPage, String format);

    public void selectBookById(Long bookId);
    
    public List<Book> bookListByGenreAndPublicationType(String genre, String publicationType);

    public List<Book> bookListByPublicationType(PublicationTypeCode publicationsTypeCode);

    public List<Book> bookListByGenre(GenreCode genreCode);
}
